﻿@foreach (var p in ViewBag.Spbanchay)
{
    <div class="pro_home">
        <div class="pro-pro">
            <a class="pro-img" href="/Product/Detail/@p.Id">
                <img class="image" src="~/images/products/@p.Image" />
            </a>
            <a href="/Product/Detail/@p.Id" class="pro-name">@p.Name</a>
            <p class="pro-price">@Html.FormatValue(p.UnitPrice, "{0:C}")</p>
            
           
            <div class="icon">
                @if (p.Latest)
                {
                    <img src="~/images/new_icon.gif" />
                }
                else if (p.Special)
                {
                    <img src="~/images/special_icon.gif" />
                }
                else if (p.Discount > 0)
                {
                    <img src="~/images/promo_icon.gif" />
                }
            </div>
        </div>
    </div>
}